import paddlehub as hub

model = hub.Module(name='lstm_tacotron2', output_dir='./output_dir', speaker_audio='wxz.wav')
module = hub.Module(name="ernie_gen_couplet")
test_texts = ["风吹云乱天垂泪"]
results = module.generate(texts=test_texts, use_gpu=False, beam_width=1)

texts = [results[0][0]]
wavs = model.generate(texts, use_gpu=False)

for text, wav in zip(texts, wavs):
    print('='*30)
    print(f'Text: {text}')
    print(f'Wav: {wav}')